import java.awt.*;
public class TestTriangle{
	public static void main(String[] arr){
		Triangle t = new Triangle(new Point(0,0), new Point(1,1), new Point(2,2));
		ColoredTriangle rct = new ColoredTriangle(Color.red, new Point(0,0), new Point(1,1), new Point(2,2));
		System.out.println(t.equals(t));
		System.out.println(t.equals(rct));
		System.out.println(rct.equals(t));

		ColoredTriangle redTriangle = new ColoredTriangle(Color.red, new Point(0,0), new Point(1,1), new Point(2,2));
		ColoredTriangle blueTriangle = new ColoredTriangle(Color.blue, new Point(0,0), new Point(1,1), new Point(2,2));
		System.out.println(redTriangle.equals(blueTriangle));
		System.out.println(blueTriangle.equals(redTriangle));
	}
}
